package com.guoxue.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.guoxue.dao.IFollowsDao;
import com.guoxue.domain.FollowsVo;
import com.guoxue.service.IFollowsService;

@Service("followsService")
public class FollowsServiceImpl implements IFollowsService {
	@Resource
	private IFollowsDao dao;

	@Override
	public List<FollowsVo> getFriendsList(int uId) {
		return dao.getFriendsList(uId);
	}

	@Override
	public void saveFollows(FollowsVo vo) {
		dao.saveFollows(vo);
	}

	@Override
	public FollowsVo getFriendById(int followed, int follower, int sysflag) {
		return dao.getFriendById(followed, follower, sysflag);
	}

	@Override
	public List<FollowsVo> getFollowedList(int uid) {
		return dao.getFollowedList(uid);
	}

	@Override
	public List<FollowsVo> getBlackList(int uid) {
		return dao.getBlackList(uid);
	}

	@Override
	public FollowsVo getBlackerById(int uid, int blacker) {
		return dao.getBlackerById(uid, blacker);
	}

	@Override
	public int getFollowsCount(Integer uid) {
		return dao.getFollowsCount(uid);
	}

	@Override
	public int getBlackCount(Integer uid) {
		return dao.getBlackCount(uid);
	}

	@Override
	public int getMyFollowsCount(Integer uid) {
		return dao.getMyFollowsCount(uid);
	}

	// @Override
	// public FollowsVo getBeBlackList(int uid, int blacker) {
	// return dao.getBeBlackList(uid,blacker);
	// }
	//
	// @Override
	// public FollowsVo getFollowInfo(int uid, int blacker) {
	// return dao.getFollowInfo(uid,blacker);
	// }

	@Override
	public FollowsVo getFriendByIdAllStatus(int followed, int follower) {
		return dao.getFriendByIdAllStatus(followed, follower);
	}

}
